package com.zbkj.crmeb.store.service.impl;

import javax.annotation.Resource;

import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zbkj.crmeb.store.dao.PurchaseOrderDao;
import com.zbkj.crmeb.store.model.PurchaseOrder;
import com.zbkj.crmeb.store.request.PurchaseOrderRequest;
import com.zbkj.crmeb.store.service.StorePurchseOrderService;

import java.util.List;


@Service
public class StorePurchseOrderServiceImpl extends ServiceImpl<PurchaseOrderDao, PurchaseOrder> implements StorePurchseOrderService {

    @Resource
    PurchaseOrderDao dao;

    /**
     * 
     * @author cyz
     * @date 2021/4/13 15:38
     * @param storeOrderId 
     * @return java.lang.Integer
     */
    @Override
    public Integer getPurchaseOrderCount(String storeOrderId) {
        return dao.getPurchaseOrderCount(storeOrderId);
    }

    /**
     * 
     * @author cyz
     * @date 2021/4/13 15:38
     * @param request
     * @return com.zbkj.crmeb.store.model.PurchaseOrder
     */
    @Override
    public PurchaseOrder getPurchaseOrderByOrderId(PurchaseOrderRequest request) {
        return dao.getPurchaseOrderByOrderId(request);
    }

}
